Release 10.1A: OpenEdge Development:
Progress Dynamics Basic Development


Building viewers

The Progress Dynamics static viewer is essentially the same object as a standard SmartDataViewer. It is based on a slightly different template, the file ry\obj\rysttviewv.w, which has a few Progress Dynamics-specific definitions at the top, and a slightly different set of wizard pages to guide you through building the object. Otherwise, it is the same as the standard SmartDataViewer.

To build a static viewer:

  1. From the AppBuilder main window, select New Static SmartDataViewer.
  2. Proceed past the Welcome page of the wizard. The second wizard page is not in the standard viewer wizard. It prompts you for descriptive information about the viewer, as shown:
  3. Fill in a meaningful Description and Purpose. This text will be written to the top of the Definitions Section of the viewer when you save the file. To clear the text in the Definitions Section, choose the Blank Definitions section. Then type your Description and Purpose over again. Choose Re-Read to restore the previously saved Definitions information.
  4. In the Object field, replace the template name with the name of your viewer.
  5. If you are using Progress Dynamics in conjunction with the Roundtable SCM system, fill in the Source Code Management Info section. Otherwise, leave these fields unchanged.
  6. Choose Next to proceed to Page 3, as shown:
  7. Choose whether the data source should be from the Repository or static, and specify whether the viewer itself will be static or dynamic.
  8. For the Data source filename, enter or browse for the name of the static or dynamics SDO or SBO whose fields will go into the viewer.
  9. Choose Next.
  10. Choose the Add Fields button on the next stage to select fields from your SDO or SBO to place onto the viewer, as shown:
  11. Choose OK.
  12. Choose Next in the Fields page, and you are done.
  13. Press Finish in the final wizard page, and your viewer appears with a default field layout, as shown:
  14. Arrange the visual layout of the viewer any way you like, then save it.

You can learn more about building SmartDataViewers and using the AppBuilder for both visual layout and editing code blocks in the standard OpenEdge documentation.

Note: The Progress 4GL renders radio-set widgets as CHARACTER data type.

ActiveX controls

ActiveX or OCX controls are not supported on dynamic viewers. They can, however, be placed on a static viewer.

To place these types of controls on a static viewer:

  1. Open any existing static SmartObject or create a new one to place the control on.
  2. From the AppBuilder Palette, click on the OCX icon to place an OCX control on the static SmartObject, as shown:
  3. The following dialog appears, prompting you to select a control:
  4. Select a control and click OK.
  5. Place the new ActiveX control on the static SmartObject as follows:
  6. Save changes.

Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095